/***********************************
* Name: InterParam.java
* Date: Oct 4, 2010
* @author martin
* Description:
***********************************/

package interCodeGen;


public class InterParam implements Cod3Dir{

    String param = "";  //id1
                        //id2 -> ""
                        //id3 -> ""
    private String from_funtion = "";
    private int num_of_parameter = 0;

    /*****************************************
     * InterParam
     * constructor
     *****************************************/
    public InterParam(String param,String from_funtion, int num_of_parameter){
        this.param = param;
        this.num_of_parameter = num_of_parameter;
        this.from_funtion = from_funtion;
    }

    /*****************************************
     * getParam
     * @return id1 with his representation
     *****************************************/
    public String getParam() {
        return this.param;
    }

    /*****************************************
     * getCodeString
     * @return the complete code of the Cod3Dir
     *****************************************/
    public String getCodeString() {
        return "\t"+"param "+this.param+", "+this.getFrom_funtion()+", "+this.getNum_of_parameter();
    }

    /*****************************************
     * @return the from_funtion
     *****************************************/
    public String getFrom_funtion() {
        return from_funtion;
    }

    /*****************************************
     * @return the num_of_parameter
     *****************************************/
    public int getNum_of_parameter() {
        return num_of_parameter;
    }

}
